home *** CD-ROM | disk | FTP | other *** search
- // This class operate with two pares of axes : X1-Y1 and X2-Y2.
-
- #ifndef __AXES2_H_
- #define __AXES2_H_
-
- #include "h_v_axes.h"
-
- enum { HORIZ1, VERT1, HORIZ2, VERT2 };
-
- class Axes2
- {
- protected:
- HV_Axes* horiz_axe;
- HV_Axes* vert_axe;
- HV_Axes* horiz_axe_2;
- HV_Axes* vert_axe_2;
- public:
- Axes2();
- ~Axes2()
- { delete horiz_axe; delete vert_axe;
- delete horiz_axe_2; delete vert_axe_2; }
-
- void cross(rect coord, loc zero); // Draw beginning of the coord.
- void set_axe(int which_axe, int axe_len,
- double start = 0, double end = 0,
- int tick_no = 0, int* ticks_on_axe = NULL,
- int s_tick_no = 0, int* sub_ticks_on_axe = NULL,
- char** legends_on_axe = NULL, int text_direction = HORIZ_DIR);
- void show(loc left_top_of_axe, int ax_color, int legends_color);
- };
-
- #endif __AXES2_H_